import 'package:flutter/material.dart';

class ActionButton extends StatelessWidget {

  final IconData icon;
  final Color color;
  final double size;
  final VoidCallback callback;

  ActionButton(this.icon, {
    this.size,
    this.color = Colors.black,
    this.callback
  });

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      child: Container(
        width: size * 1.7,
        alignment: Alignment.center,
        child: Icon(icon, size: size, color: color,),
      ),
      onTap: callback,
    );
  }
}
